package com.kkb.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author ztranscript 2021/8/28 14:01
 **/
@Data
@Component
public class Person {
    @Value("1")
    private Integer id;
    @Value("18")
    private Integer age;
    @Value("zs")
    private String name;

    /**
     * 人有一部车
     */
    @Autowired()
    @Qualifier("card01")
    private Card card;
}
